<Query Kind="Program" />

void Main()
{
	Resume resume1 = new Resume("桃子","20","温州");
	
	Resume resume2 = resume1.Clone();
	resume2.Name = "桃子的爸爸";
	resume2.Age = "28";

	Resume resume3 = resume1.Clone();
	resume3.Name = "桃子的妈妈";
	resume3.Age = "30";

	resume1.Display();
	resume2.Display();
	resume3.Display();

}

class Resume
{
	public string Name { get; set;}
	public string Age {get;set;}
	public string Home {get;set;}
	
	public Resume(string name, string age, string home){
		Name = name;
		Age = age;
		Home = home;
	}

	public void Display()
	{
		Console.WriteLine($"名字:{Name}");
		Console.WriteLine($"年龄:{Age}");
		Console.WriteLine($"家:{Home}");
		Console.WriteLine($"-------------------------------------");
	}
	
	public Resume Clone(){
		return new Resume(Name, Age, Home);
	}
}

